//
//  Student.swift
//  Swift_Learn
//
//  Created by EDY on 5/22/25.
//

import Foundation
class Student: Person {
    var studentID: Int
    init(name: String, age: Int, studentID:Int) {
        self.studentID = studentID
        super.init(name: name, age: age)
    }
    
    override func greet() {
        print("你好，我的名字叫\(name) 年龄\(age) 学号\(studentID)")
    }
    
    deinit {
        print("\(name) 被释放")
    }
}
